<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminer后台管理系统</title>
<link href="<{$APP_PUBLIC_PATH}>images/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$APP_PUBLIC_PATH}>javascript/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ //这个就是传说的ready
		$("#main_big").slideToggle("slow");
});
</script>
</head>

<body style="background:#FFF">
<iframe name="get" style="display:none;"></iframe>
	<div id="main_big" style="display:none">会员管理</div>
    <div id="main_contents">
<div id="search">
	<div id="main_bar"><input type="button" name="new" id="new" class="main_get" onclick="window.location='?m=News&a=add'" value="新增信息" /></div> 
  <form id="form2" name="form2" method="post" action="?m=Member&a=member_search" style="float:left;">
    <input type="text" name="search" id="search_text" />
    <input type="submit" name="search_button" id="search_button" class="main_get" value="搜 索" />
  </form>
</div>
    <div id="main_description">描述：会员管理</div>
<script type="text/javascript">
$(document).ready(function(){ 
				$("#form1").slideDown("slow"); 		   
        $(".main_table tr").mouseover(function(){
                $(this).addClass("over");}).mouseout(function(){
                $(this).removeClass("over");}) 
        $(".main_table tr:even").addClass("alt");
			$('.show_m').click(function(){
				var pid = +$(this).find('.pid').html();
				$.ajax({
					type: 'POST',
					url: '?m=Member&a=ajax_show',data: 'pid='+pid+'&show_m='+$(this).find('.show_me').html(),
					dataType:'json',
					success: function(json){
					$('#c' + pid).html(json.show);
					$('#s' + pid).html(json.value);
					}
				});
			});

});
</script>
    <form id="form1" name="form1" method="post" target="get" action="?m=News&a=news_delete" style="display:none;">
    <div id="table_c">
    	<table border="0" cellspacing="1" class="main_table">
       		 <tr>
            	<th width="30" align="center">删</th>
                <th width="50">会员UID</th>
                <th>用户名</th>
                <th>昵称</th>
            	<th>E-mail</th>
            	<th>来自</th>
            	<th>注册时间</th>
            	<th>最后登录</th>
            	<th>登录次数</th>
            	<th>是否VIP</th>
            	<th>权限</th>
                <th>编辑</th>
            </tr>
            <if condition="!empty($member)">
            <volist name="news" id="vo">
        	<tr>
            	<td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$vo.uid}>"></td>
                <td><{$vo.uid}></td>
                <td><{$vo.username}></td>
            	<td><{$vo.nickname}></td>
                <td><{$vo.email}></td>
            	<td><{$vo.regional}></td>
            	<td><{$vo.regtime|date="Y-m-d H:i:s",###}></td>
                <td><{$vo.lastdate|date="Y-m-d H:i:s",###}></td>
                <td><{$vo.loginnumber}></td>
                <td><{$vo.vip}></td>
                <td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.news_id}></span><span id="s<{$vo.news_id}>" class="show_me" style="display:none;"><{$vo.show_m}></span>
                <span id="c<{$vo.uid}>" class="show"><if condition="$vo.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                <td><a href="?m=News&a=edit&pid=<{$vo.uid}>">[详细]</a></td>
            </tr>
            </volist>
            <else />
            <tr>
            	<td colspan="11">当前没有任何记录</td>
             </tr>
             </if>
        </table>
                  </div>
        <div id="page"><{$page}></div>
            	  <input onclick="return confirm('确定删除?')" type="submit" name="button" id="button" class="main_get" value="提  交" />
        </form>

	</div>


</body>
</html>